bin/admin: Don't load sysroot for root commands
authorJonathan Lebon <jlebon@redhat.com>
Fri, 8 Sep 2017 19:40:59 +0000 (15:40 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 13 Sep 2017 14:32:20 +0000 (14:32 +0000)
commit4c02fc2daa7c433c095b1757d630836d75b974db
tree6a1bf11180a1094a358b4ce7e16ee9df8e13d048
parent225bbdf0024a4325dcda273cce135912f6217824
bin/admin: Don't load sysroot for root commands

There's no need to load the sysroot for root commands which have
subcommands, like `ostree admin` and `ostree admin instutil`. Otherwise,
even just calling them without arguments will cause a failure. The
subcommands will have the appropriate flags set as needed.

Closes: #1126
Approved by: cgwalters
src/ostree/ot-admin-builtin-instutil.c
src/ostree/ot-builtin-admin.c
src/ostree/ot-main.c